import React from 'react'
import Alert from './Alert'
import { connect } from 'react-redux'
import style from './index.module.scss'
import Change from './Change'

class Index extends React.Component {
    render() {
        return(
            <div className={style.index}>
                { this.props.isAlertShow ? <Alert /> : null}
                <Change title="今日TOP"></Change>
            </div>
        )
    }
}
const mapStateToProps = (store) => {
    return {
        isAlertShow: store.isAlertShow,
        rList: store.rList
    }
}
const mapDispatchToProps = (dispatch) => {
    return {}
}
export default connect(mapStateToProps, mapDispatchToProps)(Index)